﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template.Master" AutoEventWireup="true"
    CodeBehind="AddressLookups.aspx.cs" Inherits="SystemDirectory.AddressLookups" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="Css/style.css" type="text/css" />
    <style>
.top {
	border: 0px solid #ccc;
	overflow: hidden;
	padding: 0;
	margin: 0;
	padding-bottom: 2px; 
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
.top-left {
	border: 0px solid #ccc;
	font:bold 14px Arial,  Verdana, Helvetica, sans-serif;
	float: left;
	padding: 5px 0;
}
.top-right {
	border: 0px solid #ccc;
	float: right;
	text-align: right;
}
.details1 {
	overflow: hidden;
}
.content-left {
	float: left;
	padding-right: 50px;
}
.content-right {
}
.frm div {
    display: table;
    position: static;
}
.frm div label {
	width: 150px;
	word-wrap: break-word;
	
	display: table-cell;
    vertical-align: middle;
    position: static;
}
.frm textarea {
	width: 260px;
	height: 80px;
}
.frm input[type="text"], input[type="password"] {
	width: 260px;
}
.frm select {
	width: 270px;
}
.frm .field
	display:table;
}



</style>
    <script type="text/javascript">
        $(document).ready(function () {
            $("li").removeClass("active");
            $(".premise").addClass("active");
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content">
        <div id="mainContainer">
            <div class="box">
                <div id="container-orglst">
                    <h4>
                        <a href="#">Search Postcode</a>
                    </h4>
                    <form>
                    <div class="tabDetails" style="height: 50px">
                        <div class="field">
                            <label for="postcode" style="display: inline-block; margin-left: 5px">
                                Postcode:
                            </label>
                            <asp:TextBox ID="postcode" runat="server"></asp:TextBox>
                            <label for="street" style="display: inline-block; margin-left: 20px">
                                Street:
                            </label>
                            <asp:TextBox ID="street" runat="server"></asp:TextBox>
                            <label for="town" style="display: inline-block; margin-left: 65px">
                                Town:
                            </label>
                            <asp:TextBox ID="town" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div>
                        <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btn btn-primary"
                            OnClick="btnSearch_Click" />
                        <input type="button" value="None" style="margin-left: 10px; margin-right: 10px" class="btn btn-primary" />
                        <input type="reset" value="Clear" style="margin-right: 10px" class="btn btn-primary" />
                    </div>
                    <br />
                    <div class="div-table">
                        <asp:Repeater ID="rptAddress" runat="server">
                            <HeaderTemplate>
                                <table width="100%" class="table-striped table-bordered">
                                    <thead>
                                        <tr style="background: #006dcc">
                                            <th>
                                            </th>
                                            <th>
                                                Address
                                            </th>
                                            <th>
                                                Post code
                                            </th>
                                            <th>
                                                Town
                                            </th>
                                            <th>
                                                County
                                            </th>
                                            <th>
                                                Country
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <input type="radio" name="select" id="select" value="<%#Eval("AddressId") %>" />
                                    </td>
                                    <td>
                                        <%#Eval("AddressLine1") %>
                                    </td>
                                    <td>
                                        <%#Eval("PostCode") %>
                                    </td>
                                    <td>
                                        <%#Eval("TownName") %>
                                    </td>
                                    <td>
                                        <%#Eval("CountyName") %>
                                    </td>
                                    <td>
                                        <%#Eval("CountryName") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </tbody> </table>
                            </FooterTemplate>
                        </asp:Repeater>
                        <span class="pagelinks" style="float: right;">
                            <asp:HyperLink ID="hplBackward" runat="server"><span class="icon icon-backward"></span></asp:HyperLink>
                            Page
                            <asp:Label ID="lblCurrent" runat="server" Text="Label"></asp:Label>
                            of <span class="nops">
                                <asp:Label ID="lblTotal" runat="server" Text="Label"></asp:Label>
                            </span>
                            <asp:HyperLink ID="hplForward" runat="server"><span class="icon icon-forward"></span></asp:HyperLink>
                        </span>
                    </div>
                    <div style="margin-top: 20px;">
                        <input type="button" value="Select" style="margin-right: 10px" class="btn btn-primary" />
                        <input type="button" value="Close" class="btn btn-primary" />
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
